<%!
public static String Trim(String s)
{
    String s1;
    if(s == null || s.equals(""))
        s1 = "";
    else
        s1 = s.trim();
    return s1;
}
%>

<%
Integer __userId = (Integer)session.getAttribute("userid");

System.out.println("userId : " + __userId);
//System.out.println("userId length : " + __userId.length());

if (__userId == null) {
	response.sendRedirect("index.jsp");
	return;
}
%>